package com.maizhe.service.impl;

import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.maizhe.dao.OrganizationMapper;
import com.maizhe.dao.SysLogMapper;
import com.maizhe.dao.UserMapper;
import com.maizhe.dao.UserRoleMapper;
import com.maizhe.entity.Organization;
import com.maizhe.entity.SysLog;
import com.maizhe.entity.User;
import com.maizhe.entity.UserRole;
import com.maizhe.entity.vo.UserVo;
import com.maizhe.service.SysLogService;
import com.maizhe.service.UserService;
import com.maizhe.util.JsonResult;
import com.maizhe.util.UUIDGenerator;
import org.apache.log4j.spi.LoggingEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

@Service
public class SysLogServiceImpl implements SysLogService {
	
	@Autowired
	private SysLogMapper sysLogMapper;

	public PageInfo<SysLog> findAll(SysLog sysLog) {
		PageHelper.startPage(sysLog.getPage(),sysLog.getRows());
		List<SysLog> list = sysLogMapper.findAll(sysLog);
		return new PageInfo<SysLog>(list);
	}

}
